package com.literaryfamily.literaryfamily.exceptions;

/**
 * 操作失败时抛出此异常作为返回内容
 */
public class OperationException extends RuntimeException {
	public void setMsg(String msg) {
		this.msg = msg;
	}


	/**
	 * 返回值信息
	 */
	private String msg;

	public OperationException(String message) {
		super(message);
		msg = message;
	}

	public String getMsg() {
		return msg;
	}
}